/**
 * import Vue from 'vue'
 * import VueRouter from 'vue-router'
 * Vue.use(VueRouter)
 * const routes=[{path:'/',component:()=>import('../')}]
 * const router=new VueRouter({
 *    routes,
 *    mode:'history'
 * })
 * export default router
 */

import {RouteRecordRaw,createRouter,createWebHistory} from 'vue-router'

const routes:Array<RouteRecordRaw>=[
    {
        path:'/news',
        component:()=>import('@/views/News.vue')
    },
    {
        path:'/music',
        component:()=>import('@/views/Music.vue')
    },
    {
        path:'/vedio',
        component:()=>import('@/views/Vedio.vue')
    },
    {
        path:'/newsDetail/:id',
        component:()=>import('@/views/NewsDetail.vue')
    },
    {
        path:'/musicDetail',
        name:'MusicDetail',
        component:()=>import('@/views/MusicDetail.vue')
    }
]

const router=createRouter({
    routes,
    history:createWebHistory()
})
export default router